home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / samples / hello / testit.bat < prev    next >
DOS Batch File  |  1993-11-13  |  3KB  |  103 lines

  1. @echo off
  2.  
  3. echo.
  4. echo Checking the installation...
  5. echo.
  6.  
  7. if exist ..\..\bin\go32.exe goto got_go32
  8. echo The file bin/go32.exe is missing.  This should be in djeoeXXX.zip
  9. goto exit
  10. :got_go32
  11.  
  12. if exist ..\..\bin\setdjgpp.bat goto got_setdjgpp
  13. echo The file bin/setdjgpp.bat is missing.  This should be in djdevXXX.zip.
  14. goto exit
  15. :got_setdjgpp
  16.  
  17. if exist ..\..\bin\gcc.exe goto got_gcc
  18. echo The file bin/gcc.exe is missing.  This should be in gccXXXbn.zip.
  19. goto exit
  20. :got_gcc
  21.  
  22. if exist ..\..\bin\cc1.exe goto got_cc1
  23. echo The file bin/cc1.exe is missing.  This should be in gccXXXbn.zip.
  24. goto exit
  25. :got_cc1
  26.  
  27. if exist ..\..\bin\cpp.exe goto got_cpp
  28. echo The file bin/cpp.exe is missing.  This should be in gccXXXbn.zip.
  29. goto exit
  30. :got_cpp
  31.  
  32. if exist ..\..\include\stdio.h goto got_stdio
  33. echo The file include/stdio is missing.  This should be in djdevXXX.zip.
  34. goto exit
  35. :got_stdio
  36.  
  37. if exist ..\..\bin\as.exe goto got_as
  38. echo The file bin/as.exe is missing.  This should be in gasXXXbn.zip.
  39. goto exit
  40. :got_as
  41.  
  42. if exist ..\..\bin\ld.exe goto got_ld
  43. echo The file bin/ld.exe is missing.  This should be in bnuXXbn.zip.
  44. goto exit
  45. :got_ld
  46.  
  47. if exist ..\..\lib\crt0.o goto got_crt0
  48. echo The file bin/crt0.o is missing.  This should be in djdevXXX.zip.
  49. goto exit
  50. :got_crt0
  51.  
  52. if exist ..\..\lib\libc.a goto got_libc
  53. echo The file bin/libc.a is missing.  This should be in djdevXXX.zip.
  54. goto exit
  55. :got_libc
  56.  
  57. if exist ..\..\bin\cc1plus.exe goto got_cc1plus
  58. echo The file bin/cc1plus.exe is missing.  This should be in gppXXX.zip.
  59. echo You will not be able to compile C++ programs without this module.
  60. :got_cc1plus
  61.  
  62. if exist ..\..\bin\cc1obj.exe goto got_cc1obj
  63. echo The file bin/cc1obj.exe is missing.  This should be in objcXXX.zip.
  64. echo You will not be able to compile Objective-C programs without this module.
  65. :got_cc1obj
  66.  
  67. if exist ..\..\bin\info.exe goto got_info
  68. echo The file bin/info.exe is missing.  This should be in txiXXXbn.zip.
  69. echo You will not be able to read the online documention without this module.
  70. :got_info
  71.  
  72. if exist ..\..\docs\djgpp\libcref.i goto got_libdocs
  73. echo The file docs/djgpp/libcref.i is missing.  This should be in djdocXXX.zip.
  74. echo You will not have any documentation without this module.
  75. :got_libdocs
  76.  
  77. echo.
  78. echo Warning!  This program changes all DJGPP-related environment variables.
  79. echo Press Ctrl-C now to cancel!
  80. echo.
  81. pause
  82.  
  83. call ..\..\bin\setdjgpp ../.. ..\..
  84. set TMPDIR=.
  85. set GO32TMP=.
  86. set GO32=
  87.  
  88. echo.
  89. echo Compiling the test program
  90. echo.
  91.  
  92. ..\..\bin\gcc -v hello.c -o hello
  93.  
  94. echo.
  95. echo Running the test program
  96. echo.
  97.  
  98. ..\..\bin\go32 hello
  99.  
  100. echo .
  101.  
  102. :exit
  103.